<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Encabezado Interno</title>
<link href="Style.css" rel="stylesheet" type="text/css" />

<!-- SCRIPT PARA DETECTAR ADBLOCK!-->
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
var ads = "publiEstasEn"; //Aqui ponemos el class que le hemos dado a todos los div con publi. En el caso de este ejemplo : div
var msg = 'Hemos detectado que ha instalado un Software que evita la correcta visualización del sitio. Para poder disfrutar de todo el contenido de EstasEnPosse.com te invitamos a desactivar el sistema y actualizar el sitio web. Muchas Gracias! El Equipo de EstasEnPosse.com'; //Aqui el texto a mostrar en lugar de la publicidad
</script>
<script src="scripts/adblocks.js" type="text/javascript"></script>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<?
$useragent=$_SERVER['HTTP_USER_AGENT'];
if(preg_match('/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))
//header('Location: http://www.movil.estasenposse.com/');
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="40" bgcolor="#FFCC00" class="LineaSimpleDoble">
    
    <div align="center">
      <table width="1000" border="0" cellspacing="0" cellpadding="0" >
        <tr>
          <td width="511" align="left"><?
		  
		//  echo $user_agent;
          //incluyo la conexion a la base de datos.
		 include("conexion.php");

// EJEMPLO DE CONSULTA DE SELECCIÓN DE REGISTROS. PREPARADA
$db = conectaDb();
$dbTabla = $dbDb . ".actualizacion";                  // Nombre de la tabla
$consulta = "SELECT FECHA,HORA FROM $dbTabla WHERE ID > :id ORDER BY ID DESC LIMIT 1";
  try {
$result = $db->prepare($consulta,array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));
$result->execute(array(":id" => 1));
if (!$result) {
    print "<p>Error en la consulta.</p>\n";
} else {
   
    $array   = $result->fetch(PDO::FETCH_ASSOC);
	
	$fecha = $array['FECHA'];
	$hora = $array['HORA'];
    
	
}
  } catch (PDOException $e) {
    print $e->getMessage();
  }
$db = null;
//FIN CONSULTA
		  $actualizado = $fecha. " a las ".$hora;
		  
		  ?><span class='LetraPequeniaDoble'>Actualizado: </span><span class='LetraPequenia'><? echo $actualizado; ?> </span><span class="LetraPequeniaDoble">|</span><span class='LetraPequenia'> <span class="LetraPequeniaDoble">
        <? 
	  	$fecha = time();
		$dia = date ("w" , $fecha);
		switch ($dia){
			case "0": 	
				$dia = "Domingo";
				break;
			case "1": 	
				$dia = "Lunes";
				break;
			case "2": 	
				$dia = "Martes";
				break;
			case "3": 	
				$dia = "Miércoles";
				break;
			case "4": 	
				$dia = "Jueves";
				break;
			case "5": 	
				$dia = "Viernes";
				break;
			case "6": 	
				$dia = "Sábado";
				break;			
		}
		$mes = date( "F" , $fecha );
		switch($mes){
			case "January";
				$mes = "Enero";
				break;
			case "February";
				$mes = "Febrero";
				break;
			case "March";
				$mes = "Marzo";
				break;
			case "April";
				$mes = "Abril";
				break;
			case "May";
				$mes = "Mayo";
				break;
			case "June";
				$mes = "Junio";
				break;
			case "July";
				$mes = "Julio";
				break;
			case "August";
				$mes = "Agosto";
				break;
			case "September";
				$mes = "Septiembre";
				break;
			case "October";
				$mes = "Octubre";
				break;
			case "November";
				$mes = "Noviembre";
				break;
			case "December": 	
				$mes = "Diciembre";
				break;	
		}
		echo $dia."&nbsp;";
		echo date ( " j " , $fecha );
		echo "de ";
		echo $mes;
		echo " de ";
		echo date("Y" , $fecha ); 
		//browser para detectar si ingresa desde el explorer o desde otro explorador.
		$browser = substr($_SERVER['HTTP_USER_AGENT'],8,1);
			
	?>
          |</span></span></td>
          <td width="369"> <!-- B&uacute;squeda Google -->
              <div align="right">
               <form action="http://www.google.com.ar" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-9550488638935635:9068885752" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="30" />
    <input type="submit" name="sa" value="Buscar" />
  </div>
</form>

<script type="text/javascript" src="http://www.google.com.ar/coop/cse/brand?form=cse-search-box&amp;lang=es"></script>

            </div>
            <!-- B&uacute;squeda Google --></td>
          <td width="9">&nbsp;</td>
          <td width="111"><div align="right">
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="24%"><div align="right"><a href="https://www.facebook.com/EstasEnPosse" target="_blank"><img src="IMAGENES/icon_face_BN.png" width="25" height="25" border="0" onmouseover="this.src='IMAGENES/icon_face.png';" onmouseout="this.src='IMAGENES/icon_face_BN.png';"/></a></div></td>
                <td width="7%">&nbsp;</td>
                <td width="23%"><a href="https://twitter.com/EstasEnPosse" target="_blank"><img src="IMAGENES/icon_twitter_BN.png" width="25" height="25" border="0" onmouseover="this.src='IMAGENES/icon_twitter.png';" onmouseout="this.src='IMAGENES/icon_twitter_BN.png';"/></a></td>
                <td width="10%">&nbsp;</td>
                <td width="21%" align="left"><a href="http://www.youtube.com/user/estasenposse" target="_blank"><img src="IMAGENES/icon_youtube_BN.png" width="25" height="25" border="0" onmouseover="this.src='IMAGENES/icon_youtube.png';" onmouseout="this.src='IMAGENES/icon_youtube_BN.png';"/></a></td>
                <td width="15%"><!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-annotation="none"></div>

<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
  window.___gcfg = {lang: 'es-419'};

  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script></td>
              </tr>
            </table>
          </div></td>
          </tr>
      </table>
    </div>
    
    </td>
  </tr>
  <tr>
    <td height="185" class="">
      <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td height="185"><div align="center"><a href="http://www.estasenposse.com/" target="_parent"><img src="IMAGENES/LogoMasterMundial.png" alt="Logo" width="450" height="215" border="0" /></a></div></td>
        <td width="57%" align="right" valign="middle"><div class="publiEstasEn">
          <div align="center">
            <?
	 ////-------ALEATORIO PUBLICIDAD COOPERATIVA UNIÓN-------///////////
    $rnd = rand(0,3);
	switch ($rnd) {
    case 0:
        $pub_union = "farmas1.swf";
		$imagen = "Farmas.png";
		$link="https://www.facebook.com/pages/FARM%C3%81S/410910079044551?ref=ts&fref=ts";	
        break;
    case 1:
        $pub_union = "farmas2.swf";
		$imagen = "Farmas.png";
		$link="https://www.facebook.com/pages/FARM%C3%81S/410910079044551?ref=ts&fref=ts";	
        break;
	case 2:
        $pub_union = "Ferrero.swf";
		$imagen = "Ferrero.png";
		$link="https://www.facebook.com/ferreroindumentaria?fref=ts";	
        break;
	case 3:
        $pub_union = "Ferrero.swf";
		$imagen = "Ferrero.jpg";
		$link="https://www.facebook.com/ferreroindumentaria?fref=ts";	
        break;
   
	default:
	    $pub_union = "farmas1.swf";
		$imagen = "Farmas.jpg";
		$link="https://www.facebook.com/pages/FARM%C3%81S/410910079044551?ref=ts&fref=ts";	
        break;
}
	?>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="150" id="FlashID" title="Publicidad">
              <param name="movie" value="PUBLICIDAD/<? echo $pub_union; ?>" />
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="7.0.70.0" />
              <!-- Esta etiqueta param indica a los usuarios de Flash Player 6.0 r65 o posterior que descarguen la versión más reciente de Flash Player. Elimínela si no desea que los usuarios vean el mensaje. -->
              <param name="expressinstall" value="scripts/expressInstall.swf" />
              <!-- La siguiente etiqueta object es para navegadores distintos de IE. Ocúltela a IE mediante IECC. -->
              <!--[if !IE]>-->
              <object type="application/x-shockwave-flash" data="PUBLICIDAD/<? echo $pub_union; ?>" width="500" height="150">
                <!--<![endif]-->
                <param name="quality" value="high" />
                <param name="wmode" value="opaque" />
                <param name="swfversion" value="7.0.70.0" />
                <param name="expressinstall" value="scripts/expressInstall.swf" />
                <!-- El navegador muestra el siguiente contenido alternativo para usuarios con Flash Player 6.0 o versiones anteriores. -->
                <a href="<? echo $link; ?>" target="_blank"><img src="http://www.estasenposse.com/PUBLICIDAD/IMAGENES/<? echo $imagen; ?>" alt="Clic Aquí" width="500" height="150" align="ccenter" /></a></a>
                <!--[if !IE]>-->
                </object>
              <!--<![endif]-->
              </object>
            </div>
        </div></td>
      </tr>
    </table></td>
  </tr>
</table>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>